import Vue from 'vue'
import Router from 'vue-router'

// const _import = file => () => import('/views/' + file + '/index.vue')
// const _import = file => () => require('@/views/' + file + '/index.vue')

import index from '../views/index/index'
import hotList from '../views/hotList/index'
import vipInfo from '../views/vipInfo/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      component: index
    },
    {
      path:'/index',
      component: index
    },
    {
      path:'/hotList',
      component: hotList
    },
    {
      path:'/vipInfo',
      component: vipInfo
    }
  ] 
})
 